<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
	<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/js/themes/default/easyui.css" />
    <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/js/themes/icon.css" />
    <link rel="stylesheet" href="${pageContext.request.contextPath}/css/ainit.css" type="text/css"></link>
 	<script type="text/javascript" src="${pageContext.request.contextPath}/js/jquery-1.4.4.min.js"></script>
 	<script type="text/javascript" src="${pageContext.request.contextPath}/My97DatePicker/WdatePicker.js"></script>
    <script type="text/javascript" src="${pageContext.request.contextPath}/js/jquery.easyui.min.1.2.2.js"></script>
    <script type="text/javascript" src="${pageContext.request.contextPath}/js/locale/easyui-lang-zh_CN.js"></script>
    <script type="text/javascript" src="${pageContext.request.contextPath}/js/jquery.json-2.4.min.js"></script>
    <script type="text/javascript" src="${pageContext.request.contextPath}/js/jquery.ainit-1.0.0.js"></script>
    <script type="text/javascript" src="${pageContext.request.contextPath}/model/js/jquery.ainit-1.1.0.js"></script>
    <script type="text/javascript" src="${pageContext.request.contextPath}/model/js/model.js"></script> 
    <script type="text/javascript" src="${pageContext.request.contextPath}/model/js/perlize.js"></script> 
    <script type="text/javascript" src="${pageContext.request.contextPath}/model/js/save.js"></script> 
    <script type="text/javascript" src="${pageContext.request.contextPath}/model/js/initPage.js"></script> 
    <script type="text/javascript" src="${pageContext.request.contextPath}/model/js/butnScript.js"></script> 
	<script type="text/javascript">
		//butnList   colId  type  jsUrl   panelTitle  prefix 
		$(function(){
			initSQuery("DATALIST;QUERYCLN",'${m.prefix}','${m.dzObjList}');
			$('#${m.prefix}_mb').menubutton({  
			    menu: '#${m.prefix}_mm',
			    plain:false
			});
		});
	</script>
</head>
<body  onresize="resizeGrid();">
	<div id="${m.prefix}_S_QUERY">
		<div id='${m.prefix}_parentTabPanel' >
			<div>
				<table cellpadding="0" cellspacing="0" style="width: 100%;height:100%;padding-top: 10px; ">
					<tr>
						<td style="vertical-align: top; ">
						</td>
						<td>
							<div id="${m.prefix}_useCon" pre='${m.prefix}' >  
								<table class='tableBord' id="${m.prefix}_commUse"></table>
					        </div>  
						</td>
						<td align="right" style="vertical-align: top;">
							<div align="right" style=" width:550px;margin-right: 25px;" id="${m.prefix}_queryButn">
								<c:forEach items="${m.butnList[0]}" var="butn">
									<c:if test="${butn.name eq 'select'}">
										<a class='easyui-linkbutton' onclick="${butn.scriptFunc}" name="${butn.name}" id='${m.prefix}_${butn.butCode}' iconCls="${butn.icon}"   pre='${m.prefix}' dsid='${m.dsId}' tit='${m.panelTitle}' flag='1' right='${butn.butRight}'>${butn.butnName}</a>
									</c:if>
								</c:forEach>
								<!-- <a class='easyui-linkbutton' onclick="reset(this)" id='reset'  pre='${m.prefix}' dsid='${m.dsId}' tit='${m.panelTitle}' flag='1' >重置</a>   -->
							</div> 
						</td>
					</tr>
			    </table>
			</div>
			<div id="${m.prefix}_costTabPanel"  style="width: 100%;height:500px; padding-top: 10px;">  
		        <div  id="${m.prefix}_QueryList">  <!--需要修改的地方-->
					<table cellpadding="0" cellspacing="0" style="width: 100%;height:100%;padding-top: 10px; ">
						<tr>
							<td colspan="2" style="padding-top: 10px;">
								<!-- 数据列表 -->	
								<table id="${m.prefix}_DATALIST" ></table>
							</td>
						</tr>
					</table>
		        </div>  
		    </div>
		</div>
		<input type="hidden" id='${m.prefix}_sq_pks'/>
		<input type="hidden" id="${m.prefix}_dsId" value="${m.dsId}"/>
		<input type="hidden" id="${m.prefix}_type" value="${m.type}"/>
		<input type="hidden" id="${m.prefix}_jsUrl" value="${m.jsUrl}"/>
		<input type="hidden" id="${m.prefix}_prefix" value="${m.prefix}"/>
		<input type="hidden" id="${m.prefix}_initFunc" value="${m.initFunc}"/>
		<input type="hidden" id="${m.prefix}_ainitFunc" value="${m.ainitFunc}"/>
		<input type="hidden" id="${m.prefix}_keyValue" value="${m.keyValues}"/>
		<input type="hidden" id="${m.prefix}_choice" value="${m.choice}"/>
		<input type="hidden" id="${m.prefix}_aoru" value="${m.aoru}"/>
		<input type="hidden" id="${m.prefix}_pks" value="${m.pks}"/>
		<input type="hidden" id="${m.prefix}_winitFunc" value="${m.winitFunc}"/>
		<input type="hidden" id="${m.prefix}_wainitFunc" value="${m.wainitFunc}"/>
	</div>
</body>
</html>